package com.ftg.learn.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDate;

/**
 * 员工实体
 *   这是一个java  与  数据库里面的表的字段与属性对应的关系
 * @author 布衣
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "员工实体")
public class EmployeeDomain {

    @ApiModelProperty(value = "员工id")
    private Integer eid;

    @ApiModelProperty(value = "员工姓名")
    private String ename;

    @ApiModelProperty(value = "员工性别")
    private String sex;

    @ApiModelProperty(value = "员工教育")
    private String edu;

    @ApiModelProperty(value = "受雇日期")
    private LocalDate employed;

    @ApiModelProperty(value = "出生日期")
    private LocalDate birthday;

    @ApiModelProperty(value = "工资")
    private Double salary;

    @ApiModelProperty(value = "提成")
    private Double subsidy;

}
